import java.util.HashMap;
import java.util.Map;

import name.jiaosha.air.company.domain.Storage;
import name.jiaosha.air.company.service.ICompanyService;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ali8ba.common.PageInfo;


public class TestDao {
	
	public static void main(String[] args) {

		ApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationContext.xml" });

		ICompanyService service = (ICompanyService) context.getBean("companyService");
		Map<String, Object> map = new HashMap<String, Object>();

		PageInfo<Storage> pageInfo=service.getStorageByComId(1, 1, 20);
		
		
//		PageModel<Company> pm = dao.findForPageModel("pageSelect", 1, 20, map);
//
		System.out.println(pageInfo.getTotalProperty());
		System.out.println(pageInfo.getItemList());
		
		
	}

}
